home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 04 - 1988 / 04.05 May 88 / mpw PalFun Stuff / PalFun.r < prev    next >
Encoding:
Text File  |  1988-04-14  |  4.6 KB  |  300 lines  |  [TEXT/MPS ]

  1. /*------------------------------------------------------------------------------
  2.  
  3.       PalFun.r    -  Resources for PalFun
  4.  
  5.       Designed by Steve Sheets for MacTutor 3/88
  6.  
  7. ------------------------------------------------------------------------------*/
  8.  
  9. #include "Types.r"
  10.  
  11. /* About PalFun Alert */
  12.  
  13. resource 'ALRT' (300) {
  14.     {40, 170, 200, 470},
  15.     300,
  16.     {    /* array: 4 elements */
  17.         /* [1] */
  18.         OK, visible, silent,
  19.         /* [2] */
  20.         OK, visible, silent,
  21.         /* [3] */
  22.         OK, visible, silent,
  23.         /* [4] */
  24.         OK, visible, silent
  25.     }
  26. };
  27.  
  28. resource 'DITL' (300) {
  29.     {    /* array DITLarray: 5 elements */
  30.         /* [1] */
  31.         {120, 120, 140, 180},
  32.         Button {
  33.             enabled,
  34.             "OK"
  35.         },
  36.         /* [2] */
  37.         {20, 73, 39, 227},
  38.         StaticText {
  39.             disabled,
  40.             "PalFun by Steve Sheets"
  41.         },
  42.         /* [3] */
  43.         {40, 58, 59, 242},
  44.         StaticText {
  45.             disabled,
  46.             "Designed for MacTutor 3/88"
  47.         },
  48.         /* [4] */
  49.         {60, 15, 79, 285},
  50.         StaticText {
  51.             disabled,
  52.             "A demonstration of the Palette Manager"
  53.         },
  54.         /* [5] */
  55.         {80, 74, 99, 226},
  56.         StaticText {
  57.             disabled,
  58.             "and Palatte Animation."
  59.         }
  60.     }
  61. };
  62.  
  63. /* Fade Window/Palette */
  64.  
  65. resource 'WIND' (300) {
  66.     {100, 100, 300, 500},
  67.     documentProc,
  68.     -1,
  69.     GoAway,
  70.     0x0,
  71.     "Fade"
  72. };
  73.  
  74. resource 'pltt' (300) {
  75.     {    /* array ColorInfo: 9 elements */
  76.         /* [1] */
  77.         65535, 65535, 65535, pmAnimated, 0,
  78.         /* [2] */
  79.         0, 0, 0, pmAnimated, 0,
  80.         /* [3] */
  81.         65535, 0, 0, pmAnimated, 0,
  82.         /* [4] */
  83.         0, 65535, 0, pmAnimated, 0,
  84.         /* [5] */
  85.         0, 0, 65535, pmAnimated, 0,
  86.         /* [6] */
  87.         0, 65535, 65535, pmAnimated, 0,
  88.         /* [7] */
  89.         65535, 0, 65535, pmAnimated, 0,
  90.         /* [8] */
  91.         65535, 65535, 0, pmAnimated, 0,
  92.         /* [9] */
  93.         30000, 30000, 30000, pmAnimated, 0
  94.     }
  95. };
  96.  
  97. /* Shape Window, Palette & Color LookUp Tables */
  98.  
  99. resource 'WIND' (301) {
  100.     {140, 120, 280, 370},
  101.     documentProc,
  102.     -1,
  103.     GoAway,
  104.     0x0,
  105.     "Shape"
  106. };
  107.  
  108. resource 'pltt' (301) {
  109.     {    /* array ColorInfo: 8 elements */
  110.         /* [1] */
  111.         65535, 0, 0, pmAnimated, 0,
  112.         /* [2] */
  113.         0, 0, 65535, pmAnimated, 0,
  114.         /* [3] */
  115.         65535, 0, 0, pmAnimated, 0,
  116.         /* [4] */
  117.         0, 0, 65535, pmAnimated, 0,
  118.         /* [5] */
  119.         65535, 0, 0, pmAnimated, 0,
  120.         /* [6] */
  121.         0, 0, 65535, pmAnimated, 0,
  122.         /* [7] */
  123.         65535, 0, 0, pmAnimated, 0,
  124.         /* [8] */
  125.         0, 0, 65535, pmAnimated, 0
  126.     }
  127. };
  128.  
  129. resource 'clut' (301) {
  130.     0x0,
  131.     0,
  132.     {    /* array ColorSpec: 8 elements */
  133.         /* [1] */
  134.         0, 65535, 0, 0,
  135.         /* [2] */
  136.         1, 0, 0, 65535,
  137.         /* [3] */
  138.         2, 65535, 0, 0,
  139.         /* [4] */
  140.         3, 0, 0, 65535,
  141.         /* [5] */
  142.         4, 65535, 0, 0,
  143.         /* [6] */
  144.         5, 0, 0, 65535,
  145.         /* [7] */
  146.         6, 65535, 0, 0,
  147.         /* [8] */
  148.         7, 0, 0, 65535
  149.     }
  150. };
  151.  
  152. resource 'clut' (302) {
  153.     0x0,
  154.     0,
  155.     {    /* array ColorSpec: 8 elements */
  156.         /* [1] */
  157.         0, 65535, 0, 0,
  158.         /* [2] */
  159.         1, 65535, 0, 0,
  160.         /* [3] */
  161.         2, 0, 0, 65535,
  162.         /* [4] */
  163.         3, 0, 0, 65535,
  164.         /* [5] */
  165.         4, 65535, 0, 0,
  166.         /* [6] */
  167.         5, 65535, 0, 0,
  168.         /* [7] */
  169.         6, 0, 0, 65535,
  170.         /* [8] */
  171.         7, 0, 0, 65535
  172.     }
  173. };
  174.  
  175.  
  176. resource 'clut' (303) {
  177.     0x0,
  178.     0,
  179.     {    /* array ColorSpec: 8 elements */
  180.         /* [1] */
  181.         0, 65535, 0, 0,
  182.         /* [2] */
  183.         1, 65535, 0, 0,
  184.         /* [3] */
  185.         2, 65535, 0, 0,
  186.         /* [4] */
  187.         3, 65535, 0, 0,
  188.         /* [5] */
  189.         4, 0, 0, 65535,
  190.         /* [6] */
  191.         5, 0, 0, 65535,
  192.         /* [7] */
  193.         6, 0, 0, 65535,
  194.         /* [8] */
  195.         7, 0, 0, 65535
  196.     }
  197. };
  198.  
  199. /* Window Names */
  200.  
  201. resource 'STR#' (300) {
  202.     {    /* array StringArray: 6 elements */
  203.         /* [1] */
  204.         "Red",
  205.         /* [2] */
  206.         "Green",
  207.         /* [3] */
  208.         "Blue",
  209.         /* [4] */
  210.         "Current Colors",
  211.         /* [5] */
  212.         "Ball",
  213.         /* [6] */
  214.         "Rainbow"
  215.     }
  216. };
  217.  
  218. /* Menus */
  219.  
  220. resource 'MENU' (301) {
  221.     301,
  222.     textMenuProc,
  223.     0x7FFFFFFD,
  224.     enabled,
  225.     apple,
  226.     {    /* array: 2 elements */
  227.         /* [1] */
  228.         "About PalFun...", noIcon, "", "", plain,
  229.         /* [2] */
  230.         "-", noIcon, "", "", plain
  231.     }
  232. };
  233.  
  234. resource 'MENU' (302) {
  235.     302,
  236.     textMenuProc,
  237.     0x7FFFFFFB,
  238.     enabled,
  239.     "File",
  240.     {    /* array: 4 elements */
  241.         /* [1] */
  242.         "Animate", noIcon, "A", "", plain,
  243.         /* [2] */
  244.         "Close", noIcon, "W", "", plain,
  245.         /* [3] */
  246.         "-", noIcon, "", "", plain,
  247.         /* [4] */
  248.         "Quit", noIcon, "Q", "", plain
  249.     }
  250. };
  251.  
  252. resource 'MENU' (303) {
  253.     303,
  254.     textMenuProc,
  255.     0x7FFFFFFD,
  256.     enabled,
  257.     "Edit",
  258.     {    /* array: 6 elements */
  259.         /* [1] */
  260.         "Undo", noIcon, "", "", plain,
  261.         /* [2] */
  262.         "-", noIcon, "", "", plain,
  263.         /* [3] */
  264.         "Cut", noIcon, "", "", plain,
  265.         /* [4] */
  266.         "Copy", noIcon, "", "", plain,
  267.         /* [5] */
  268.         "Paste", noIcon, "", "", plain,
  269.         /* [6] */
  270.         "Clear", noIcon, "", "", plain
  271.     }
  272. };
  273.  
  274. resource 'MENU' (304) {
  275.     304,
  276.     textMenuProc,
  277.     allEnabled,
  278.     enabled,
  279.     "Window",
  280.     {    /* array: 8 elements */
  281.         /* [1] */
  282.         "Red", noIcon, "", "", plain,
  283.         /* [2] */
  284.         "Green", noIcon, "", "", plain,
  285.         /* [3] */
  286.         "Blue", noIcon, "", "", plain,
  287.         /* [4] */
  288.         "Current Color", noIcon, "", "", plain,
  289.         /* [5] */
  290.         "Ball", noIcon, "", "", plain,
  291.         /* [6] */
  292.         "Shape", noIcon, "", "", plain,
  293.         /* [7] */
  294.         "Rainbow", noIcon, "", "", plain,
  295.         /* [8] */
  296.         "Fade", noIcon, "", "", plain
  297.     }
  298. };
  299.  
  300.